<?php if ($Security->CanAdd()) {

?><form action="/portlet.php?app=system&operation=createbulkusers" method="POST" enctype="multipart/form-data" encoding="multipart/form-data">

        <input type="hidden" name="MAX_FILE_SIZE" value="100000">



        <select id="groups" name="groups" multiple="true" size="5" style="width: 150px;"> <?php

$sSql="SELECT  * from portal_groups where portalId=".$portalId;

//echo $sSql;

Portal_log($sSql);
$rs=$GLOBALS["conn"]->Execute($sSql);


while ( !$rs->EOF)  {

?><option value="<?php    echo $rs->fields["name"]; ?>"><?php    echo $rs->fields["name"]; ?></option><?php

    $rs->MoveNext();
}

?>
</select> <input type="file" name="file">
<br/>
<input type="submit" value="Create Bulk Users"/>

</form>

<?php

}

?>